#ifndef		__UDPRECIVETHREAD_H__
#define		__UDPRECIVETHREAD_H__

#include <stdlib.h>
#include "jmutex.h"
#include "jthread.h"
#include "UDPProcess.h"
class UDPProcessThread;
class UDPReciveThread:private JThread
{
public:
	UDPReciveThread(UDPProcessThread &process);
	~UDPReciveThread();

//	int UDPServer(unsigned short port);

	int Start();
	void Stop();
private:
	void *Thread();
	bool stop;
	JMutex stop_mutex;
	UDPProcessThread &udpProcess;
};


#endif